package com.neu.questionnaire_system.util;

import java.util.List;

/**
 * 常量工具类，含有规范的状态码和状态消息等常量。
 * A constant utility class that contains standardized constants such as status codes and status messages.
 *
 * @author libo
 * @version 1.0 2022-10-31
 */
public class Constants {

    /**
     * 公用成功失败状态码
     */
    public static final String SUCCESS_CODE = "200";//成功状态码
    public static final String FAIL_CODE = "20001";//失败状态码

    /**
     * 公用的部分状态消息。
     */
    public static final String DELETE_MESSAGE = "删除成功";
    public static final String UPDATE_MESSAGE = "修改成功";
    public static final String ADD_MESSAGE = "添加成功";
    public static final String SELECT_MESSAGE = "查询成功";
    public static final String DELETE_FAIL_MESSAGE = "删除失败";
    public static final String UPDATE_FAIL_MESSAGE = "修改失败";
    public static final String ADD_FAIL_MESSAGE = "添加失败";
    public static final String SELECT_FAIL_MESSAGE = "查询失败";
    public static final String SEND_MESSAGE = "发送成功";
    public static final String REGISTER_MESSAGE = "注册类型已确定";
    public static final String REGISTER_SUCCESS_MESSAGE = "注册成功";
    public static final String LOGIN_SUCCESS_MESSAGE = "登录成功";
    public static final String LOGIN_FAIL_MESSAGE = "登录失败";
    public static final String JUMP_MESSAGE = "跳转成功";
    public static final String JUMP_FAIL_MESSAGE = "当前选项无跳转题目";

    /**
     * 公用的有关用户的状态消息和状态码
     */
    public static final String USERNAME_REPEAT_MESSAGE = "用户名已存在";
    public static final String USERNAME_FAIL_DELETE_MESSAGE = "用户下有群组，不能删除！";
    public static final String USERNAME_FAIL_UPDATE_MESSAGE = "用户下有群组，不能修改！";
    public static final String USER_SHOW_ALL_MESSAGE = "用户查询成功！";

    /**
     * 公用的有关租户的状态消息
     */
    public static final String TENANT_REPEAT_MESSAGE = "租户名已存在";
    public static final String TENANT_FAIL_DELETE_MESSAGE = "租户下有用户，不能删除！";

    /**
     * 分页每页的最大尺寸
     */
    public static final int PAGE_SIZE = 10;

    /**
     *题目类型
     */
    public static final String QUESTION_TYPE_JUDGEMENT = "判断题";
    public static final String QUESTION_TYPE_CHOICE = "选择题";
    public static final String QUESTION_TYPE_BLANKS = "简答题";

    /**
     * 问卷状态信息
     */
    public static final String QUESTIONNAIRE_DELETE_MESSAGE= "删除失败，问卷处于开启状态！";
    public static final String QUESTIONNAIRE_PUBLISH_MESSAGE = "发布成功！";
    public static final String FAIL_PUBLISH_MESSAGE = "发布失败！请选择面向对象";

    /*
     * 答者登录信息
     */

    public static final String ANSWER_ALREADYANSWERED_MESSAGE = "您已经回答过此问卷了";
    public static final String ANSWER_QUESTIONNAIRENOTPUBLISHED_MESSAGE = "问卷尚未开启！";
}
